home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 344 < prev    next >
Encoding:
Text File  |  1996-08-05  |  566 b   |  28 lines

  1. Newsgroups: comp.lang.c++
  2. Path: uucp-1.csn.net!slimer!bgeerdes
  3. From: bgeerdes@igs.com (Bruce Geerdes)
  4. Subject: Re: C to C++
  5. Message-ID: <1996Jan3.211433.4807@igs.com>
  6. Organization: Igs, Inc.
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. References: <30EA2EA0.86C@comcept.ab.ca>
  9. Date: Wed, 3 Jan 96 21:14:33 GMT
  10.  
  11. The BFP (bfp@comcept.ab.ca) wrote:
  12. > <#include stdio.h>
  13. >
  14. > printf("Hi")
  15. >
  16. > Will not compile for C++.  
  17.  
  18. I suspect that the above code will not compiler for C, either.  Try:
  19.  
  20. #include <stdio.h>
  21.  
  22. int main()
  23. {
  24.   printf("Hi");
  25. }
  26. -- 
  27. bgeerdes@igs.com (Bruce Geerdes)
  28.